package com.hk.commons.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

/**
 * 客户信息表
 * 
 * @author baiht
 * 
 */
@Entity
@Table(name = "Customer")
public class Customer implements java.io.Serializable{

	private static final long serialVersionUID = -1584980532386228461L;

	@Id
	@Column(name = "Id", length = 20)
	private Long id;

	/** 客户姓名非空 */
	@Column(name = "Name", length = 10)
	private String name;

	/** 身份证 */
	@Column(name = "Identity", length = 100)
	private String identity;

	/** 手机号码 */
	@Column(name = "Mobile", length = 100)
	private String mobile;
	
	/** 固定电话 */
	@Column(name = "Phone", length = 100)
	private String phone;
	
	/** 职业 */
	@Column(name = "Occupation", length = 100)
	private String occupation;
	
	/** 客户类型 */
	@Column(name = "Type", length = 100)
	private String type;
	
	/** 登记id */
	@Column(name = "RegisterId", length = 10)
	private Long registerId;
	
	@Column(name = "CreateTime")
	private Long createTime = System.currentTimeMillis();

	@Column(name = "Creator", length = 20)
	private String creator;
	
	@Column(name = "UpdateTime")
	private Long updateTime;

	@Column(name = "Updator", length = 20)
	private String updator;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIdentity() {
		return identity;
	}

	public void setIdentity(String identity) {
		this.identity = identity;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getOccupation() {
		return occupation;
	}

	public void setOccupation(String occupation) {
		this.occupation = occupation;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Long getRegisterId() {
		return registerId;
	}

	public void setRegisterId(Long registerId) {
		this.registerId = registerId;
	}

	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Long getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Long updateTime) {
		this.updateTime = updateTime;
	}

	public String getUpdator() {
		return updator;
	}

	public void setUpdator(String updator) {
		this.updator = updator;
	}
}
